package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.AccountsBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface AccountsService extends BaseService<AccountsBean> {

	AccountsBean getAccountsBeanById(String id) throws Exception;
	
	void removeAccountsBeanById(String id) throws Exception;
	
	void removeAccountsBeanByIds(String ids) throws Exception;
	
	AccountsBean saveAccountsBean(AccountsBean crm) throws Exception;
	
	AccountsBean updateAccountsBean(AccountsBean crm) throws Exception;
	
	Page<AccountsBean>  findAccountsBeanByCond(AccountsBean bean,
			Page<AccountsBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveAccountsBeanExt(String sql) throws Exception;

	String findAccountsBeanExtCreate(String tableName) throws Exception;

	String findAccountsBeanExtEdit(String tableName, String id)
			throws Exception;

	String findAccountsBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasAccountsBeanExtData(String tableName, String id)
			throws Exception;
}